import request from '@/utils/request'

// 查询门禁权限监控列表
export function listMjGuardPermision(query) {
  return request({
    url: '/energy/mjGuardPermission/list',
    method: 'get',
    params: query
  })
}

// 查询门禁权限监控详细
export function getMjGuardPermision(id) {
  return request({
    url: '/energy/mjGuardPermission/' + id,
    method: 'get'
  })
}

// 新增门禁权限监控
export function addMjGuardPermision(data) {
  return request({
    url: '/energy/mjGuardPermission',
    method: 'post',
    data: data
  })
}

// 修改门禁权限监控
export function updateMjGuardPermision(data) {
  return request({
    url: '/energy/mjGuardPermission',
    method: 'put',
    data: data
  })
}

// 删除门禁权限监控
export function delMjGuardPermision(id) {
  return request({
    url: '/energy/mjGuardPermission/' + id,
    method: 'delete'
  })
}
